﻿@model CNav.Domain.Admin.DataValue

@{
    ViewBag.Title = "Data List - Details";
}

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    <div id="dataValue">
        <ol>
            <li>
                @Html.LabelFor(model => model.DataSourceName) @Html.DisplayFor(model => model.DataSourceName)
            </li>

            <li>
                @Html.LabelFor(model => model.Name) @Html.DisplayFor(model => model.Name)
            </li>

            <li>
                @Html.LabelFor(model => model.Value) @Html.DisplayFor(model => model.Value)
            </li>

            <li>
                <label>&nbsp;</label>
                <input type="button" value="Edit" id="editButton" />
                <input type="button" value="Cancel" id="cancelButton" />
                @Html.HiddenFor(m => m.ID)
            </li>
        </ol>
    </div>
}

<script type="text/javascript">
    $(document).ready(function () {

        var cc = new CaseCentre();
        cc.BindEdit('#editButton', '#ID', '@Url.Content("~/DataValue/Edit/")');
        cc.BindCancel('#cancelButton', '@Url.Content("~/DataValue/Index")');
    });
</script>
